#!/bin/sh
image_name="electric-simulation-jw";
base_dir="/opt/biz"
docker stop ${image_name}_8080
docker rm ${image_name}_8080
docker run --name=${image_name}_8080 -itd -p 8080:8080  -v ${base_dir}/log/server:/target/logs  -v ${base_dir}/conf:/target/config -h ${image_name}_8080 --link=mysql-jw ${image_name}:0.1
docker stop ${image_name}_8081
docker rm ${image_name}_8081
docker run --name=${image_name}_8081 -itd -p 8081:8080  -v ${base_dir}/log/server:/target/logs  -v ${base_dir}/conf:/target/config -h ${image_name}_8081 --link=mysql-jw ${image_name}:0.1